package com.group.Service.Impl;

import com.group.DAO.RecordsDAO;
import com.group.Enity.Records;
import com.group.Service.RecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordsServiceImpl implements RecordsService {

    @Autowired
    private RecordsDAO recordsDAO;

    public List<Records> getRecords(String numbers,String typeId){

        return recordsDAO.getRecodes(numbers,typeId);
    }

    @Override
    public void add(Records records) {
        recordsDAO.add(records);
    }

    @Override
    public void delete(int id) {
        recordsDAO.delete(id);
    }
}
